<?php
App::uses('AppModel', 'Model');
/**
 * Scheduleoption Model
 *
 * @property Section $Section
 * @property User $User
 */
class Scheduleoption extends AppModel {

public $displayField = 'schedule';
/**
 * Validation rules
 *
 * @var array
 */
        public $validate = array(
                'section_id' => array(
                        'numeric' => array(
                                'rule' => array('numeric'),
                                //'message' => 'Your custom message here',
                                //'allowEmpty' => false,
                                //'required' => false,
                                //'last' => false, // Stop validation after this rule
                                //'on' => 'create', // Limit validation to 'create' or 'update' operations
                        ),
                ),
        );

        //The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
        public $belongsTo = array(
                'Section' => array(
                        'className' => 'Section',
                        'foreignKey' => 'section_id',
                        'conditions' => '',
                        'fields' => '',
                        'order' => ''
                )
        );

/**
 * hasAndBelongsToMany associations
 *
 * @var array
 */
        public $hasAndBelongsToMany = array(
                'User' => array(
                        'className' => 'User',
                        'joinTable' => 'scheduleoptions_users',
                        'foreignKey' => 'scheduleoption_id',
                        'associationForeignKey' => 'user_id',
                        'unique' => 'keepExisting',
                        'conditions' => '',
                        'fields' => '',
                        'order' => '',
                        'limit' => '',
                        'offset' => '',
                        'finderQuery' => '',
                )
        );

}

?>